home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16850 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: ivan.iecc.com!not-for-mail
  2. From: Cleveland A Gibbon <cag@Cs.Nott.AC.UK>
  3. Newsgroups: comp.lang.c++,comp.compilers
  4. Subject: Re: Parsing C++ headers?
  5. Date: 11 Apr 1996 23:47:47 -0400
  6. Organization: Compilers Central
  7. Sender: johnl@iecc.com
  8. Approved: compilers@ivan.iecc.com
  9. Message-ID: <96-04-078@comp.compilers>
  10. References: <96-04-033@comp.compilers>
  11. NNTP-Posting-Host: localhost.iecc.com
  12. Keywords: C++, parse
  13.  
  14. John Mitchell <104316.1514@CompuServe.COM> writes:
  15. >I want to parse C++ header files, and extract information about the
  16. >contained classes and their interface. A yacc-able grammar for this
  17. >type of problem ( or superset of it, as for compilation) would be a
  18. >great help. I'm aware of a grammar for C++ 2.0 out there - is there a
  19. >later version supporting templates?
  20.  
  21. John,
  22.  
  23. Welcome to your worst nightmare! I have not been able to track down a
  24. yacc-able grammar for 2 years. The one you mentioned about is very old
  25. and would need a substantial amount of work to include templates.
  26. There is a neat C++ grammar that is written in C/C++, hence portable
  27. to any platform with a C/C++ compiler.
  28.  
  29. An in depth discussion currently underway about its update and
  30. bugfixes.  For your, purpose it should suffice.  Check out
  31. 'comp.compiler.tools.pccts' and join the fun.
  32.  
  33. Cleve.
  34. --
  35. Send compilers articles to compilers@iecc.com,
  36. meta-mail to compilers-request@iecc.com.
  37.